package com.test.study.shiro_demo.dao;

import com.test.study.shiro_demo.entity.TRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TRoleDao {

    TRole getById(Integer rid);

    List<TRole> listByEntity(TRole tRole);

    TRole getByEntity(TRole tRole);

    List<TRole> listByIds(List<Integer> list);

    int insert(TRole tRole);

    int insertBatch(List<TRole> list);

    int update(TRole tRole);

    int updateByField(@Param("where") TRole where, @Param("set") TRole set);

    int updateBatch(List<TRole> list);

    int deleteById(Integer rid);

    int deleteByEntity(TRole tRole);
  
    int deleteByIds(List<Integer> list);
    
    int countAll();
    
    int countByEntity(TRole tRole);
    
}